import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import BlogDetail from '@/components/blog/BlogDetail'
import BlogListItem from '@/components/blog/BlogListItem'
import BlogEditor from '@/components/blog/BlogEditor'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      content: 'index',
      component: Index
    },
    {
      path: '/blog-detail',
      content: 'blog-detail',
      component: BlogDetail
    },
    {
      path: '/blog-item',
      content: 'blog-item',
      component: BlogListItem
    },
    {
      path: '/blog-editor',
      content: 'blog-editor',
      component: BlogEditor
    }
  ]
})
